<?php
namespace Home\Model;
use Think\Model\ViewModel;

class OnlineCategoryViewModel extends ViewModel{
    
    public $viewFields = array(
        'OnlineCategory'=>array('category_id,category_name'),
        'OnlineZoneCategory'=>array('*', '_on'=>'OnlineZoneCategory.online_category_id=OnlineCategory.category_id'),
    );
}